package com.hsgene.gateway.service.api.impl;

import com.hsgene.common.util.exception.CommonErrorCode;
import com.hsgene.common.util.result.ApiResult;
import com.hsgene.common.util.web.session.UserInfo;
import com.hsgene.gateway.service.api.LoginCheckService;
import org.springframework.stereotype.Component;

/**
 * ms-mod-user LoginCheckService fallback
 *
 * @author wangbing
 * @version 1.0, 2018/9/10
 */
@Component
public class LoginCheckServiceImpl implements LoginCheckService {

    @Override
    public ApiResult<UserInfo> checkLoginStatus(String sessionId, String accessToken) {
        return ApiResult.fail(CommonErrorCode.USER_SERVICE_NOT_AVAILABLE);
    }
}
